import { BlockType, ItemType } from '../Event/EnumDefine';

export type BuffDataType = {
    iconId: number
    /** 当前等级弹道数量 */
    trajectoryNum: number,
    /** 当前等级子弹数量 */
    bulletNum: number,
    /** 当前等级增加攻击力 */
    addAttackValue: number,
    /** 子弹发射速度 */
    shootSpeed?: number,
}

export const DataConfig = {
    /** 游戏是否结束 */
    isGameStop: false,
    isGamePause: false,
    /** 设计分辨率 */
    size: { width: 720, height: 1280 },
    /** 初始速度 */
    initSpeed: 60,
    /** 能量等级升级配置 */
    energyLevelData: [
        { value: 10 },
        { value: 20 },
        { value: 20 },
        { value: 30 },
        { value: 40 },
        { value: 50 },
        { value: 60 },
        { value: 70 },
        { value: 80 },
        { value: 90 },
        { value: 100 },
        { value: 1000 },
    ],

    /** 掉落道具buff等级配置 */
    itemLevelBuff: {
        [ItemType.Trajectory]: [
            { iconId: 0, trajectoryNum: 2 } as BuffDataType,
            { iconId: 0, trajectoryNum: 3 } as BuffDataType,
        ],
        [ItemType.ACT]: [
            { iconId: 0, addAttackValue: 2 } as BuffDataType,
            { iconId: 0, addAttackValue: 3 } as BuffDataType,
            { iconId: 0, addAttackValue: 4 } as BuffDataType,
        ],
        [ItemType.Bomb]: [
            { iconId: 0, bulletNum: 3 } as BuffDataType,
            { iconId: 1, bulletNum: 4 } as BuffDataType,
            { iconId: 2, bulletNum: 5 } as BuffDataType,
        ],
        [ItemType.UZI]: [
            { iconId: 0, bulletNum: 3, addAttackValue: 0 } as BuffDataType,
            { iconId: 1, bulletNum: 6, addAttackValue: 1 } as BuffDataType,
            { iconId: 2, bulletNum: 9, addAttackValue: 1 } as BuffDataType,
        ]
    },
    /** 数字块类型数组 */
    blockTypeList: [
        BlockType.ChengHuang,
        BlockType.Fense,
        BlockType.HongSe,
        BlockType.Huang,
        BlockType.LanSe,
        BlockType.LvSe,
        BlockType.QianZi,
        BlockType.ShenZi,
        BlockType.TianLan
    ],
};